home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / tclMotif-1.4 / programs / prog15a < prev    next >
Text File  |  1995-06-29  |  370b  |  16 lines

  1. # more searching for that Motif bug: value and c should be the same
  2. xtAppInitialize -class Program
  3.  
  4. xmCommand .command managed
  5. .command commandEnteredCallback "print_command %length"
  6.  
  7. proc print_command {value} {
  8.     puts stdout "Command from calback: $value"
  9.     .command getValues -command c
  10.     puts stdout "Command from getvalues: $c"
  11. }
  12.  
  13. . realizeWidget
  14.  
  15. . mainLoop
  16.